package com.gzw.shop.adapter;

import android.content.Context;

import com.gzw.shop.R;
import com.gzw.shop.bean.Category;

import java.util.List;

/**
 * Created by JACKYGUO on 2017-03-09.
 */

public class CategoryAdapter extends SimpleAdapter<Category> {

    public CategoryAdapter(Context context, List<Category> datas) {
        super(context, datas, R.layout.template_single_text);
    }

    @Override
    public void bindData(BaseViewHolder holder, Category category) {

        holder.getTextView(R.id.textView).setText(category.getName());

    }
}
